using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;
using TMS.Infrastructrue.Persistence.Configuration.Base;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class TMSExceptionLogConfiguration:BaseEntityConfiguration<TMSExceptionLog>
    {
        public override void Configure(EntityTypeBuilder<TMSExceptionLog> builder)
        {
            base.Configure(builder);
            
            builder.ToTable("tms_exceptionlog");

            builder.Property(x => x.ShortMessage).HasColumnName("short_message").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x => x.FullMessage).HasColumnName("full_message").HasMaxLength(200000).HasColumnOrder(2);
        }
    }
}